<template>
  <div>
    <br>
    <div>{{ father }}</div>
    <button @click="father += 1">Father加1</button>
    <br>
    <Son1></Son1>
    <br>
    <Son2></Son2>
    <br>
  </div>
</template>

<script>
import Son1 from './Son1.vue'
import Son2 from './Son2.vue'
export default {
  name: "Father",
  components: {
    Son1,
    Son2,
  },
  data() {
    return {
      father: "Father",
    };
  },
  beforeCreate() {
    console.log("beforeCreate", "father");
  },
  created() {
    console.log("created", "father");
  },
  beforeMount() {
    console.log("beforeMount", "father");
  },
  mounted() {
    console.log("mounted", "father");
  },
  beforeUpdate() {
    console.log("beforeUpdate", "father");
  },
  updated() {
    console.log("updated", "father");
  },
  beforeDestroy() {
    console.log("beforeDestroy", "father");
  },
  destroyed() {
    console.log('destroyed','father')
  }
};
</script>

<style lang="scss" scoped></style>
